/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ch.uzh.ifi.seal.ssqa.model.impl;

import ch.uzh.ifi.seal.ssqa.model.FileIndicator;
import ch.uzh.ifi.seal.ssqa.model.ModelPackage;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>File Indicator</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTCDN <em>STCDN</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTOPN <em>STOPN</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTTLN <em>STTLN</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTTOT <em>STTOT</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTTPP <em>STTPP</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTVAR <em>STVAR</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTCCA <em>STCCA</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTCCB <em>STCCB</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.FileIndicatorImpl#getSTCCC <em>STCCC</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class FileIndicatorImpl extends EObjectImpl implements FileIndicator {
	/**
	 * The default value of the '{@link #getSTCDN() <em>STCDN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCDN()
	 * @generated
	 * @ordered
	 */
	protected static final int STCDN_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTCDN() <em>STCDN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCDN()
	 * @generated
	 * @ordered
	 */
	protected int stcdn = STCDN_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTOPN() <em>STOPN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTOPN()
	 * @generated
	 * @ordered
	 */
	protected static final int STOPN_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTOPN() <em>STOPN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTOPN()
	 * @generated
	 * @ordered
	 */
	protected int stopn = STOPN_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTTLN() <em>STTLN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTLN()
	 * @generated
	 * @ordered
	 */
	protected static final int STTLN_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTTLN() <em>STTLN</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTLN()
	 * @generated
	 * @ordered
	 */
	protected int sttln = STTLN_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTTOT() <em>STTOT</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTOT()
	 * @generated
	 * @ordered
	 */
	protected static final int STTOT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTTOT() <em>STTOT</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTOT()
	 * @generated
	 * @ordered
	 */
	protected int sttot = STTOT_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTTPP() <em>STTPP</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTPP()
	 * @generated
	 * @ordered
	 */
	protected static final int STTPP_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTTPP() <em>STTPP</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTTPP()
	 * @generated
	 * @ordered
	 */
	protected int sttpp = STTPP_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTVAR() <em>STVAR</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTVAR()
	 * @generated
	 * @ordered
	 */
	protected static final int STVAR_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTVAR() <em>STVAR</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTVAR()
	 * @generated
	 * @ordered
	 */
	protected int stvar = STVAR_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTCCA() <em>STCCA</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCA()
	 * @generated
	 * @ordered
	 */
	protected static final int STCCA_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTCCA() <em>STCCA</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCA()
	 * @generated
	 * @ordered
	 */
	protected int stcca = STCCA_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTCCB() <em>STCCB</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCB()
	 * @generated
	 * @ordered
	 */
	protected static final int STCCB_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTCCB() <em>STCCB</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCB()
	 * @generated
	 * @ordered
	 */
	protected int stccb = STCCB_EDEFAULT;

	/**
	 * The default value of the '{@link #getSTCCC() <em>STCCC</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCC()
	 * @generated
	 * @ordered
	 */
	protected static final int STCCC_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getSTCCC() <em>STCCC</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getSTCCC()
	 * @generated
	 * @ordered
	 */
	protected int stccc = STCCC_EDEFAULT;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FileIndicatorImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return ModelPackage.Literals.FILE_INDICATOR;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTCDN() {
		return stcdn;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTCDN(int newSTCDN) {
		int oldSTCDN = stcdn;
		stcdn = newSTCDN;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STCDN, oldSTCDN, stcdn));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTOPN() {
		return stopn;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTOPN(int newSTOPN) {
		int oldSTOPN = stopn;
		stopn = newSTOPN;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STOPN, oldSTOPN, stopn));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTTLN() {
		return sttln;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTTLN(int newSTTLN) {
		int oldSTTLN = sttln;
		sttln = newSTTLN;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STTLN, oldSTTLN, sttln));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTTOT() {
		return sttot;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTTOT(int newSTTOT) {
		int oldSTTOT = sttot;
		sttot = newSTTOT;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STTOT, oldSTTOT, sttot));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTTPP() {
		return sttpp;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTTPP(int newSTTPP) {
		int oldSTTPP = sttpp;
		sttpp = newSTTPP;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STTPP, oldSTTPP, sttpp));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTVAR() {
		return stvar;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTVAR(int newSTVAR) {
		int oldSTVAR = stvar;
		stvar = newSTVAR;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STVAR, oldSTVAR, stvar));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTCCA() {
		return stcca;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTCCA(int newSTCCA) {
		int oldSTCCA = stcca;
		stcca = newSTCCA;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STCCA, oldSTCCA, stcca));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTCCB() {
		return stccb;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTCCB(int newSTCCB) {
		int oldSTCCB = stccb;
		stccb = newSTCCB;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STCCB, oldSTCCB, stccb));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getSTCCC() {
		return stccc;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setSTCCC(int newSTCCC) {
		int oldSTCCC = stccc;
		stccc = newSTCCC;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.FILE_INDICATOR__STCCC, oldSTCCC, stccc));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case ModelPackage.FILE_INDICATOR__STCDN:
				return getSTCDN();
			case ModelPackage.FILE_INDICATOR__STOPN:
				return getSTOPN();
			case ModelPackage.FILE_INDICATOR__STTLN:
				return getSTTLN();
			case ModelPackage.FILE_INDICATOR__STTOT:
				return getSTTOT();
			case ModelPackage.FILE_INDICATOR__STTPP:
				return getSTTPP();
			case ModelPackage.FILE_INDICATOR__STVAR:
				return getSTVAR();
			case ModelPackage.FILE_INDICATOR__STCCA:
				return getSTCCA();
			case ModelPackage.FILE_INDICATOR__STCCB:
				return getSTCCB();
			case ModelPackage.FILE_INDICATOR__STCCC:
				return getSTCCC();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case ModelPackage.FILE_INDICATOR__STCDN:
				setSTCDN((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STOPN:
				setSTOPN((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STTLN:
				setSTTLN((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STTOT:
				setSTTOT((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STTPP:
				setSTTPP((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STVAR:
				setSTVAR((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STCCA:
				setSTCCA((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STCCB:
				setSTCCB((Integer)newValue);
				return;
			case ModelPackage.FILE_INDICATOR__STCCC:
				setSTCCC((Integer)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case ModelPackage.FILE_INDICATOR__STCDN:
				setSTCDN(STCDN_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STOPN:
				setSTOPN(STOPN_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STTLN:
				setSTTLN(STTLN_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STTOT:
				setSTTOT(STTOT_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STTPP:
				setSTTPP(STTPP_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STVAR:
				setSTVAR(STVAR_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STCCA:
				setSTCCA(STCCA_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STCCB:
				setSTCCB(STCCB_EDEFAULT);
				return;
			case ModelPackage.FILE_INDICATOR__STCCC:
				setSTCCC(STCCC_EDEFAULT);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case ModelPackage.FILE_INDICATOR__STCDN:
				return stcdn != STCDN_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STOPN:
				return stopn != STOPN_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STTLN:
				return sttln != STTLN_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STTOT:
				return sttot != STTOT_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STTPP:
				return sttpp != STTPP_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STVAR:
				return stvar != STVAR_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STCCA:
				return stcca != STCCA_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STCCB:
				return stccb != STCCB_EDEFAULT;
			case ModelPackage.FILE_INDICATOR__STCCC:
				return stccc != STCCC_EDEFAULT;
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (STCDN: ");
		result.append(stcdn);
		result.append(", STOPN: ");
		result.append(stopn);
		result.append(", STTLN: ");
		result.append(sttln);
		result.append(", STTOT: ");
		result.append(sttot);
		result.append(", STTPP: ");
		result.append(sttpp);
		result.append(", STVAR: ");
		result.append(stvar);
		result.append(", STCCA: ");
		result.append(stcca);
		result.append(", STCCB: ");
		result.append(stccb);
		result.append(", STCCC: ");
		result.append(stccc);
		result.append(')');
		return result.toString();
	}

} //FileIndicatorImpl
